/*
 * Copyright (c) 2010. raoqn
 */

package com.yfeng.goodjuhome.service;

import com.yfeng.exception.ServiceException;
import com.yfeng.goodjuhome.model.MailModel;
import com.yfeng.goodjuhome.model.MessageModel;

import java.util.List;
import java.util.Map;

/**
 * 站内邮件模块
 * www.goodjuhome.com
 * Created by IntelliJ IDEA.
 * User: rqn
 * Date: 2010-8-14
 * Time: 22:24:37
 */
public interface IHomeMailService {

   public int sendMail(MailModel model) throws ServiceException;

    public int deleteMail(String[] ids) throws ServiceException;

    /**
     * 查询该用户的发送的站内邮件
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List<Map> querySendedMail(String uid) throws ServiceException;
    public List<Map> querySendedMail(String uid,String limit) throws ServiceException;

    /**
     * 查询别人给发的邮件
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List<Map> queryAcceptMail(String uid) throws ServiceException;
    public List<Map> queryAcceptMail(String uid,String limit) throws ServiceException;
}
